import i18n from '@/utils/i18n'
export const formItems = [
  {
    filed: 'nameOrPhone',
    type: 'input',
    label: i18n.t('message.jlxx'),
    placeholder: i18n.t('message.qsrjlxx')
  },
  {
    filed: 'levelId',
    type: 'select',
    label: i18n.t('message.jldj'),
    options: []
  },
  {
    filed: 'teacherType',
    type: 'select',
    label: i18n.t('message.sklx'),
    clearable: true,
    options: [
      { value: '0', label: i18n.t('message.cgk') },
      { value: '1', label: i18n.t('message.sjk') }
    ]
  },
  {
    filed: 'status',
    type: 'select',
    label: i18n.t('message.zgzt'),
    clearable: true,
    options: [
      { value: '1', label: i18n.t('message.zg') },
      { value: '0', label: i18n.t('message.lg') }
    ]
  },
  {
    filed: 'isOnJob',
    type: 'select',
    label: i18n.t('message.status'),
    clearable: true,
    options: [
      { value: '1', label: i18n.t('message.zz') },
      { value: '0', label: i18n.t('message.lz') }
    ]
  },
  {
    filed: 'sex',
    type: 'select',
    label: i18n.t('message.sex'),
    clearable: true,
    options: [
      { value: '1', label: i18n.t('message.nan') },
      { value: '2', label: i18n.t('message.nv') }
    ]
  }
]
export const queryFormConfig = {
  formItems,
  online: true
}

export const detailFormItems = [
  {
    filed: 'courseName',
    type: 'input',
    label: i18n.t('message.kcmc')
  },
  {
    filed: 'classTime',
    type: 'date',
    label: i18n.t('message.sksj')
  },
  {
    filed: 'status',
    type: 'select',
    label: i18n.t('message.kszt'),
    options: [
      { value: '1', label: i18n.t('message.ysk') },
      { value: '0', label: i18n.t('message.wsk') }
    ]
  },
  {
    filed: 'type',
    type: 'select',
    label: i18n.t('message.kclx'),
    options: [
      { value: '0', label: i18n.t('message.cgk') },
      { value: '1', label: i18n.t('message.sjk') }
    ]
  }
]
export const detailFormConfig = {
  formItems: detailFormItems,
  online: true
}

export const weekDays = [
  { value: '7', label: i18n.t('message.z7') },
  { value: '1', label: i18n.t('message.z1') },
  { value: '2', label: i18n.t('message.z2') },
  { value: '3', label: i18n.t('message.z3') },
  { value: '4', label: i18n.t('message.z4') },
  { value: '5', label: i18n.t('message.z5') },
  { value: '6', label: i18n.t('message.z6') }
]
